//
//  PreferenceController.h
//  ChimooTimer
//
//  Created by Ryan on Thu Sep 25 2003.
//  Chimoosoft (c) 2003 Chimoosoft. All rights reserved.
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.


#import <AppKit/AppKit.h>

@interface PreferenceController : NSWindowController {
	id mainController;
	
	NSToolbar * toolbar;
	
	NSUserDefaults * defaults;
	IBOutlet id tabView;
	IBOutlet id foregroundSlider;
	IBOutlet id backgroundSlider;
	
	IBOutlet id tokenField;
	
	NSArray * availableVoices;
	NSArray * voiceIdentifiers;
	
	NSString * voiceInfo;
}

- (void)setMainController:(id)cont;
- (void)setupDefaults;

- (IBAction)speechRateAdjusted:(id)sender;
- (IBAction)playMenuSound:(id)sender;
- (IBAction)voiceChanged:(id)sender;
- (IBAction)browseForFile:(id)sender;

- (IBAction)openSpeechPreferences:(id)sender;
- (IBAction)updateApplicationVisibilityInPlist:(id)sender;

@end
